Skip to content

Add support for specifying Cloudflare proxy status#16

Merged
Nicell merged 4 commits into
Nicell:mainfrom
CompeyDev:unproxied-records
May 14, 2026
Merged

Add support for specifying Cloudflare proxy status#16
Nicell merged 4 commits into
Nicell:mainfrom
CompeyDev:unproxied-records

Conversation

@CompeyDev
Copy link
Copy Markdown
Contributor

@CompeyDev CompeyDev commented May 2, 2026

The proxied request body field for Cloudflare API requests is no longer hardcoded to true.

Each value in cname.luau file can now either be a string (as before) or a typed table which contains the record content and a proxied boolean. If undefined, or a only a string is used, it defaults to proxying the record.

Two new types (Entry and Entries) have been exported from the file as well. These have been used for typing the table containing the old CNAMEs in scripts/update.luau.

This code has not been tested, since it is simple enough.

Comment thread scripts/update.luau Outdated
Comment thread scripts/update.luau Outdated
CompeyDev and others added 2 commits May 4, 2026 09:29
Handle string type old CNAMEs and defaulting proxy status in structured
entries when not defined by abstracting conversion into an `intoEntry`
utility function.
@Nicell Nicell merged commit 70ca395 into Nicell:main May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants